﻿using System;
using System.Collections.Generic;
using System.Text;
enum NotificationType { PostReply = 1, NewPost, PostModified, FreindRequest, FriendAdded };
namespace forum_iteration1.Forum
{
    class Notification
    {
        

        private NotificationType    _type;
        private string              _body;


        public Notification(NotificationType type, string body)
        {
            _type = type;
            _body = body;
        }

        public NotificationType Type { get { return _type; } }

        public void displayNotification()
        {
            switch (_type)
            { 
                case NotificationType.PostReply:
                    Console.WriteLine("New post reply:\n\n" + _body);
                    break;
                case NotificationType.NewPost:
                    Console.WriteLine("New post:\n\n" + _body);
                    break;
                case NotificationType.PostModified:
                    Console.WriteLine("Post modified:\n\n" + _body);
                    break;
                case NotificationType.FreindRequest:
                    Console.WriteLine("New freind request:\n\n" + _body);
                    break;
                case NotificationType.FriendAdded:
                    Console.WriteLine("Friend added:\n\n" + _body);
                    break;                
            }
        }
    }
}
